package com.aaa.service;

import com.aaa.entity.Role;
import com.aaa.entity.User;
import com.aaa.vo.Result;
import com.aaa.vo.RoleVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface RoleService extends IService<Role> {
    public Result<List<Role>> getAll() ;

    Result<Map<String,Object>> findByUserId(Long userId);

    Result<String> confirmRole(Long userId, Long[] roleIds);

    Result<IPage<Role>> getByPage(Integer currentPage, Integer pageSize, RoleVo roleVo);

    //根据ID删除
    boolean delById(Long id);

    boolean saveAndUpdate(Role role);
}
